/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-07 17:44:28
 * @LastEditors: Andy
 * @LastEditTime: 2023-01-03 18:05:45
 */
import { Http } from '@/common/api'
// 列表
export const listUrl = '/upms/api/page'

export const apiPostInterfacePageApi = async (data) => Http.post('/upms/api/page', data)
// 新增
export const apiPostInterfaceAdd = async (parmas) => Http.post('/upms/api/add', parmas)
export const apiPostInterfaceUpdate = async (parmas) => Http.put('/upms/api/update', parmas)
export const apiPostInterfaceBathDelete = async (id) => Http.delete(`/upms/api/batch/delete/${id}`)
export const apiPostInterfaceFindById = async (id) => Http.get(`/upms/api/findById/${id}`)
// 接口树
export const apiPostInterfaceTree = async (parmas) => Http.post('/upms/api/tree', parmas)

export const apiPutEnable = async (id) => Http.put(`/upms/api/enable/${id}`)

export const apiPutDisable = async (id) => Http.put(`/upms/api/disable/${id}`)
